There are three types of Android menus, options, context and popup Options Menu Example: 1. Put icon.jpg into the drawable folder. ----------------------- 2. MainActivity.java ----------------------- import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; import android.widget.Toast; public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); } @Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.options_menu, menu); return true; } @Override public boolean onOptionsItemSelected(MenuItem item) { Toast.makeText(this, "Selected Item: " +item.getTitle(), Toast.LENGTH_SHORT).show(); switch (item.getItemId()) { case R.id.search_item: // do your code return true; case R.id.upload_item: // do your code return true; case R.id.copy_item: // do your code return true; case R.id.print_item: // do your code return true; case R.id.share_item: // do your code return true; case R.id.bookmark_item: // do your code return true; default: return super.onOptionsItemSelected(item); } } } ------------------------- 3. options_menu.xml ------------------------- Context Menu Example: ------------------------ 1. activity_main.xml ------------------------